import request from "@/utils/request";

//获取品牌列表
export function getBrandList(query) {
	return request({
		url: "/cxdq/brand",
		headers: {
			isToken: true
		},
		method: "get",
		params: query
	});
}
//获取（0-默认，1-新上架，2-新能源，3-有检测，4-再降价）
export function getBrandListByType(query) {
	return request({
		url: "/cy/vehicle_source/app/recommend",
		headers: {
			isToken: true
		},
		method: "get",
		params: query
	});
}

//获取有待更进的收车车源
export function getBrand(query) {
	return request({
		url: "/cy/clue_transaction/app/list",
		headers: {
			isToken: true
		},
		method: "get",
		params: query
	});
}


//首页搜索
export function getSearch(query) {
	return request({
		url: "/cy/vehicle_source/app/list",
		headers: {
			isToken: true
		},
		method: "get",
		params: query
	});
}
//获取推荐车源
export function getRecommend(query) {
	return request({
		url: "/cy/vehicle_source/app/query",
		headers: {
			isToken: true
		},
		method: "get",
		params: query
	});
}